package com.zlx.store.domain.entity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (OrderTab)实体类
 *
 * @author makejava
 * @since 2023-07-28 17:45:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_tab")
public class Order {

    /**
     * 订单id
     */
    @TableId(value = "order_id",type = IdType.ASSIGN_ID)
    private Long orderId;



    /**
     * 订单的用户id
     */
    @TableField("order_user_id")
    private Long orderUserId;



    /**
     * 订单的地址
     */
    @TableField("order_address")
    private String orderAddress;



    /**
     * 订单总额
     */
    @TableField("order_amount")
    private Double orderAmount;



    /**
     * 订单的支付状态.1,新订单.2,发货中3,已完成.4,已取消
     */
    @TableField("order_state")
    private Integer orderState;



    /**
     * 订单创建时间
     */
    @TableField("order_create_time")
    private Date orderCreateTime;

}

